import java.util.Scanner;

/**
 * @author gao
 * @date 2025/8/6 3:23
 */

public class Solution {
    public String addStrings(String num1, String num2) {
        StringBuilder builder = new StringBuilder();
        int i = num1.length() - 1, j = num2.length() - 1, carry = 0;
        while (i >= 0 || j >= 0 || carry > 0) {
            int n1 = i >= 0 ? num1.charAt(i--) - '0' : 0;
            int n2 = j >= 0 ? num2.charAt(j--) - '0' : 0;
            int sum = n1 + n2 + carry;
            carry = sum / 10;
            builder.append(sum % 10);
        }
        return builder.reverse().toString();
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String num1 = in.nextLine();
            String num2 = in.nextLine();
            Solution solution = new Solution();
            System.out.println(solution.addStrings(num1, num2));
        }
    }
}